<template>
    <div>

        <el-row>
            <el-col :span="24">
                <el-form-item label="类型别名:">
                    <el-input v-model="form.name" class="type" placeholder="搜索类型别名"/>
                    <el-button type="primary" @click="onSubmit" size="large">重置</el-button>
                    <el-button size="large">查询</el-button>
                </el-form-item>
            </el-col>
            <el-col :span="24">
                 <el-button type="primary" :icon="Plus" size="large">添加印章类别</el-button>  
            </el-col>
        </el-row>
        
        <el-row>
            <el-col :span="24"><div class="grid" />
                <el-table :data="tableData" stripe style="width: 100%">
                    <el-table-column prop="date" label="ID" width="180" />
                    <el-table-column prop="name" label="类型别名" width="1000" />
                    <el-table-column prop="address" label="状态">
                        <el-button type="success" plain>Success</el-button>
                    </el-table-column>
                </el-table>
            </el-col>
        </el-row>

    </div>
</template>

<script setup lang="ts">
import { reactive } from 'vue'
import {Plus } from '@element-plus/icons-vue'
// do not use same name with ref
const form = reactive({
  name: ''
})
const onSubmit = () => {
  console.log('submit!')
}
    const tableData = [
  {
    date: '2016-05-03',
    name: 'Tom',
    address: 'No. 189, Grove St, Los Angeles',
  },
  {
    date: '2016-05-02',
    name: 'Tom',
    address: 'No. 189, Grove St, Los Angeles',
  },
  {
    date: '2016-05-04',
    name: 'Tom',
    address: 'No. 189, Grove St, Los Angeles',
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: 'No. 189, Grove St, Los Angeles',
  },
]
</script>

<style scoped>
.grid {
    margin-top: 20px;
}
.type {
    width:200px;
    height: 40px;
    margin-right:20px;
}

</style>